<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</h:head>
<h:body>
	<div style="width:100%;font-size:36px;line-height:48px;background-color:navy;color:white">H6 EDUCACIONAL</div>
	<div id="heading">
		<ui:insert name="heading">
			<ui:include src="templates/menu.xhtml"/>
		</ui:insert>
	</div>

	<h:form>
        
		<p:panelGrid columns="2">  
		
		    <f:facet name="header">  
		        Formulário de Disciplinas Ofertadas  
		    </f:facet>  
			
			<h:outputLabel value="Id: *" />  
		    <p:inputText id="id" value="#{manterDisciplinaManager.disciplinaSelec.id}" readonly="true" />
		    
		    <h:outputLabel value="Nome da Disciplina: *" />
		    <p:selectOneMenu value="#{manterDisciplinaManager.disciplinaNomeNomeSelec}" id="d"  
		    	effect="fold" editable="true">  
	            <f:selectItem itemLabel="Selecione" itemValue="" />  
	            <f:selectItems value="#{manterDisciplinaManager.disciplinasNomesNomes}"  />
			</p:selectOneMenu>
			
			<h:outputLabel value="Turma: *" />
		    <p:selectOneMenu value="#{manterDisciplinaManager.turmaNomeSelec}" id="t"
		    	effect="fold" editable="true">  
	            <f:selectItem itemLabel="Selecione" itemValue="" />  
	            <f:selectItems value="#{manterDisciplinaManager.turmasNomes}" />
			</p:selectOneMenu>
	
 		    <h:outputLabel value="Professor: *" />
 		    <p:selectOneMenu value="#{manterDisciplinaManager.professorNomeSelec}" id="p"
		    	effect="fold" editable="true">  
	            <f:selectItem itemLabel="Selecione" itemValue="" />  
	            <f:selectItems value="#{manterDisciplinaManager.professoresNomes}" />
			</p:selectOneMenu>
		  
 		    <h:outputLabel value="*" />
 		    <h:outputLabel value="*" />
		  
		    <f:facet name="footer">
		        <p:commandButton value="Salvar" action="#{manterDisciplinaManager.salvar()}" 
		        icon="ui-icon-disk" style="margin:0" 
		        rendered="#{manterDisciplinaManager.modoInsert}"/>  
		        <p:commandButton value="Atualizar"  
		        icon="ui-icon-disk" style="margin:0" 
		        rendered="#{!manterDisciplinaManager.modoInsert}"/>
		        <p:commandButton value="Voltar" action="manterDisciplinaList" icon="ui-icon-check" style="margin:0"/>
		    </f:facet>
		    
		</p:panelGrid>
		
	</h:form>  
</h:body>
</html>